package com.pet.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pet.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(description = "宠物")
@TableName("sys_pet")
public class SysPet extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 宠物名字
     */
    @ApiModelProperty(value = "宠物名字")
    @TableField("name")
    private String name;


    /**
     * 体重
     */
    @ApiModelProperty(value = "体重")
    @TableField("weight")
    private Integer weight;

    /**
     * 主人ID，关联到用户表的ID
     */
    @ApiModelProperty(value = "主人ID")
    @TableField("user_id")
    private Long userId;


    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private String sex;

    /**
     * 宠物品类
     */
    @ApiModelProperty(value = "宠物品类")
    @TableField("variety")
    private String variety;

    /**
     * 按时接种疫苗（0：有，1：没有）
     */
    @ApiModelProperty(value = "按时接种疫苗")
    @TableField("vaccine")
    private String vaccine;

    /**
     * 是否驱虫
     */
    @ApiModelProperty(value = "是否驱虫")
    @TableField("deworming")
    private String deworming;

    /**
     * 宠物年龄
     */
    @ApiModelProperty(value = "宠物年龄")
    @TableField("age")
    private Integer age;


    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    @TableField("image_url")
    private String imageUrl;

    /**
     * 宠物种类
     */
    @ApiModelProperty(value = "宠物种类")
    @TableField("type")
    private String type;


}
